package com.mrjy.video.controller;

import com.mrjy.common.entity.VideoVip;
import com.mrjy.video.bo.IVideoVipBo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("/video/videoVip")
public class VideoVipController {

    @Resource
    private IVideoVipBo videoVipBo;

    /**
     * 新增视频会员数据
     *
     * @return
     */
    @RequestMapping("/insert")
    @ResponseBody
    public Object insert(VideoVip info) {
        return videoVipBo.txInsert(info);
    }

    /**
     * 会员付费视频
     *
     * @return
     */
    @RequestMapping("/selectHasPurchase")
    @ResponseBody
    public Object selectHasPurchase(VideoVip info) {
        return videoVipBo.selectHasPurchase(info);
    }
}
